package lab02.Test06;

/**
 * Created by lenovo on 2017/10/15.
 */

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import jdk.internal.util.xml.impl.Input;

import java.util.Scanner;
public class Circle {
    public static void main(String[] args) {
        double r,perimeter,area;
        Scanner sr=new Scanner(System.in);
        System.out.println("请输入半径：");
        r = sr.nextInt();
        Input(r);


    }
    //属性：半径，周长，面积



    static public void Input(double r){
        double perimeter;
        double area;
        perimeter=2 * Math.PI * r;
        area=Math.PI * r * r;
        System.out.println("圆的周长为："+perimeter+"\n圆的面积为:"+area); }



}